package com.work.libtest2.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: ViewController
 * Package: com.work.libtest2.controller
 * Description:
 *
 * @Author
 * @Create 2024/6/9 19:10
 * @Version 1.0
 */
@Controller
@Slf4j
@RequestMapping("/view")
public class ViewController {

    /**
     * 用户登录
     * */
    @GetMapping("/login")
    public String login(){
        log.info("登录页面");
        return "home";
    }
    /**
     * 跳转员工页面
     * */
    @GetMapping("/employee")
    public String employee(){
        return "employee";
    }
    /**
     * 跳转工种页面
     */

    @GetMapping("/job")
    public String job(){
        return "job";
    }

    @GetMapping("/attendence")
    public String atten(){
        return "attendence";
    }
    @GetMapping("/extraWorkType")
    public String extraWorkType(){
        return "extraWorkType";
    }
    @GetMapping("/extraWork")
    public String extraWork(){
        return "extraWork";
    }
    @GetMapping("/rewardAndPunishment")
    public String rewardAndPunishment(){
        return "rewardAndPunishment";
    }

    @GetMapping("/department")
    public String department(){
        return "department";
    }
}
